#!/usr/bin/env bash
echo -e "\033[34m-----------------wsgi process-----------------\033[0m"
chmod +x ./*

./stop.sh

ps -ef|grep python3 | grep -v grep
sleep 0.5
echo -e "\n-----------------going to close-----------------"
ps -ef|grep python3 | grep -v grep | awk '{print $2}' | xargs kill -9
sleep 0.5
echo -e "\n-----------------check if the kill action is correct-----------------"
/data/django5-vue3-element-plus/backend/python3 manage.py runserver 0.0.0.0:9901 &

echo -e "\033[42;1m-----------------started...-----------------\033[0m"
sleep 1
ps -ef|grep python3 | grep -v grep
